import service from "@/utils/service";
import type {IUser,ILogin} from "@/myTypes"


// 添加操作人员
export const addUser=(data:IUser)=>service({
    url:"/users",
    method:"post",
    data
})


// 登录
export const loginCheckApi=(params:ILogin)=>{
    return service({
        url:"/users",
        method:"get",
        params
    })
}